import request  from '@/utils/request'


/* 获取登录的key */
export function getLoginKey (params) {
  return request({
    url: '/login/qr/key',
    method: 'get',
    params
  })
}
/* 获取登录二维码 */
export function loginKeyCreate (params) {
  return request({
    url: 'login/qr/create',
    method: 'get',
    params
  })
}
/* 检测是否扫码 */
export function loginCheck (params) {
  return request({
    url: '/login/qr/check',
    method: 'get',
    params
  })
}
/* 获取用户信息 */
export function getUserInfo (params) {
  return request({
    url: '/login/status',
    method: 'get',
    params
  })
}
